7. Image Composition

Now that you are familiar with the basic techniques for creating and editing images with Photogenics, it is time to move on to the next level of image composition. You can create composite images using the tools and techniques covered in previous chapters, along with two other features: Secondary Images and Alpha Channels. This chapter illustrates some of the advanced composition techniques available in Photogenics.

 

Secondary Images

You can combine two images by loading one as the Primary Image and one as the secondary. For the Primary Image, you can create a new image or load an existing image. To load a Secondary Image, use the Secondary menu located in the Control page of the Options menu. You can create a new image or load an existing image.

 

You can also click on the Secondary Image Chooser to see thumbnails of the loaded images that are not currently selected as the Primary Image. Simply release the mouse over the image you want in order to select it as the Secondary Image.  Once you have a Secondary image selected, you can, drawing with the RubThru mode lets you fade through to the Secondary image.

 

Often you will want to have most of the Secondary image showing through, but leaving a small part of the Primary image intact.  A neat trick is to just paint over the parts you don’t want to show through, and then using the Invert command on the Layer menu to invert the paint layer, as shown above.  Another way of doing this is to fill the paint layer so that the Secondary image completely shows through, then select erase  and fade the Primary image back in again.

 

Some modes work with Secondary Images in ways other than simply allowing them to show through the Primary Image. For example, DisplaceMap can be applied to the Primary Image to warp it to the contours of the Secondary Image and create a 3-D effect. This effect is based on the shadows and highlights of the Secondary Image, but the Secondary Image does not actually show through.

 

Secondary Images and Layers

To allow you even more power, Photogenics lets you assign a different Secondary Image to each paint layer within your image. To assign a Secondary Image to a different layer, select or create the new layer using the Layer menu or Layer Chooser, then use the Secondary menu or the Secondary Image Chooser to open or select a Secondary Image.  This allows you to layer multiple Secondary images on top of one another, while still being able to go back and edit each one, using the Layer Chooser to navigate between each layer.

 

You can arrange the Secondary Image using the Position Layer tool . By default, the Position Layer tool moves the whole layer around.  This has the effect of moving what you have drawn around in sync with the Secondary image. This may be intuitive, but isn’t always what you want  to achieve though. For example, the Secondary image might be much bigger than the Primary, making it necessary to be able to scroll the Secondary around while keeping the layer stationary.  To move the Secondary image independently of the Layer, select the “Secondary” option in the Position Layer Tool’s options page.

 

Editing Secondary Images

When you select an image to be the Secondary image, a link is formed.  This means that if you RubThrough to a Secondary image, and then draw on the Secondary image, the image that has RubThrough selected will be updated to reflect the changes.  For example, lets say you have created a really complex image composition that you are almost happy with, but would look better if the Secondary image were darker.  Instead of having to make the Secondary image darker and redo the composition, you can just make the Secondary image darker, and the composition will automatically be updated.  Note that closing the Secondary image will result in the RubThrough appearing to vanish, but if you select a different Secondary image, the RubThrough will reappear.  Also, if you select a different Secondary image, what you have draw with RubThrough will be redrawn to reflect the change.  To avoid this, press Fix before changing or closing the Secondary image.

 

Alpha Channels

As explained in chapter three, an alpha channel is used to mask which areas of the layer show through to the image below. It does this by determining which areas are transparent and which are opaque; the brighter a point on the Alpha Channel, the more transparent the equivalent point is on the layer. For example, if the Alpha channel image contained a white circle on a black background, and you then tried to paint on the layer, you would only be able to paint inside the area defined by the circle.

 

In Photogenics, alpha channels are represented as a separate image, which is displayed in the Control page of the Options menu below the Alpha menu. You can load an image or create a new image using the commands in the Alpha menu. You can also move a selected paint layer to the alpha channel and vise versa using the Layer menu.

 

Another way of explaining what an Alpha channel is would be to look at how a real airbrush works. If you were to take a piece of paper, cut a circle out of the middle, then lay the paper on top of what you are spraying, you would physically be masking everything but the circle, which is effectively what an alpha channel does. When you apply paint over the mask, it only affects the circle you cut out of the middle of the piece of paper.

 

The following example shows how this works in practice. If the paint layer were filled with the RubThru mode, the image of the eye would completely disappear and be replaced by the image of the woman. However, if the layer has an Alpha channel attached as show, then the RubThru is restricted to the white regions of the Alpha image.

 

Main Image

Alpha Channel

Result

Secondary Image

 

Alpha Channels are represented as images and can display more than just black and white.  Each pixel of the Alpha channel actually defines the transparency of each pixel of the associated layer. If you look closely at the image above, you can see that where the Alpha was not entirely white, it created a soft edge around the circle. So if the Alpha Channel contained a smooth gradient going from white at the top, to black at the bottom as seen here, then you would get the following effect.

 

Main Image

Alpha Channel

Result

Secondary Image

 

 

 

 

The Alpha channel is attached to a Layer, so if you move the layer using the position tool , the Alpha stays in the same position relative to the layer. If you select "Alpha" from the Position tools Options, you can then move the alpha channel independently of the layer. If you are using RubThru as in the examples above, you will probably want to select "Alpha+Second."


RGB Alpha Channels

Photogenics takes the concept of alpha channels one step further. A color image is made up of three separate channels, a red one, a green one, and a blue one.  When the three are combined, you get what you normally consider one color image. So what if instead of a white circle in the example above, there was a red one? Where the red circle was, the red channel would show through, but the green and blue channels would be masked. The white circle in the first example was effectively three separate circles, a red one, a green one, and a blue one, which combined to make white. The images below shows how red, green, and blue mix to form different colors, and where all three overlap, white is formed.

 

Main Image

Alpha Channel

Result

Secondary Image

 

Tips on Creating Alpha Channels

Often it is useful to create a semi-permanent mask to prevent areas of the image from being painted over.  There are many ways to go about creating masks, but the most common ways are listed below.  Be sure to try out the Ball Tutorial* for a good example of how a simple Alpha can be used to great effect.

 

Moving the Paint Layer to the Alpha Channel

This is a very easy way to create an Alpha channel.  Draw over the area that you want to restrict drawing to using the Paint mode or some other mode such as Negative that shows up well over most types of images. Alternatively, draw over the area you want to mask off, and invert the paint layer.  Next, use the Move Paint Layer to Alpha command on the Layer menu to move what you have drawn into the Alpha Channel.  If you already have an Alpha Channel in place, it will be replaced, but if you don’t already have one in place, one will be created for you automatically.  When you draw on the image now, you will find that you can only draw where paint was previously applied.  To paint on the regions where there was no paint applied, select Invert Alpha from the Layer menu.

 

To create a sharper alpha channel that masks off only specific parts of the image, try using the Flood Fill Tool.  Say you have a picture of a sky and land, and you want to make an Alpha Channel that only lets you paint on the sky. You can use the Threshold and Smoothness slider in the Flood Fill Tool’s options to fill the sky, without paint spilling into the land.  If you do fill more than you intended, you can use the tool with erase selected, which removes paint instead of adding it. This technique is analogous to the Magic Wand tool in other packages.

 

Using the Threshold Paint Mode

If the image you wish to create an Alpha Channel for has a lot of contrast, then this method can often be a quick way of generating a mask.  First, create a copy of the current image, using the Copy Image command on the Image menu.  Next, select the Threshold paint mode from the Color sub menu, and fill the paint layer with this.  You should now find that the image has been replaced by a two-tone black and white version.  Use the Threshold slider in the mode’s options to adjust which parts of the image turn to black, and which turn to white.  Once you have found a good value, try setting this black and white image to be the alpha channel for the original image.  If you arrange your windows so that both the alpha channel and the original image are displayed at the same time, you can experiment with getting the best threshold value in real time by simply moving the threshold slider as before.  You will probably find that the alpha channel is too pixilated, in which case use the Gaussian Blur paint mode to smooth out the rough edges.

 


 



* Tutorials are available for download from the Photogenics web site, http://www.paulnolan.com